<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>用户登录</title>
<style type="text/css">
</style>
<script type="text/javascript">
	function mycheck() {
		if (form1.username.value == "") {//判断用户名是不为空
			alert("请输入用户名！");
			form1.username.focus();
			return;
		}
		if (form1.password.value == "") {//判断密码是否为空
			alert("请输入密码！");
			form1.password.focus();
			return;
		}
		form1.submit();
	}
</script>
</head>
<body>
	<form name="form1" method="POST" action="logindeal.jsp">
		用户名： <input name="username" type="text"><br><br>		<!-- 设置用户名文本框-->

		密&nbsp;&nbsp;&nbsp;&nbsp;码：<input name="password" type="password"><br>	<br>	<!-- 设置密码文本框 -->
		<input name="Submit"
			type="button" class="submit1" value="登录" onClick="mycheck()">
		&nbsp; <input type="button" value="注册" onclick="window.location='index.jsp';">
	</form>
</body>
</html>